Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working with Movie Time


GetMovieTimeBase

The GetMovieTimeBase function returns a movie's time base.

pascal TimeBase GetMovieTimeBase (Movie theMovie);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
DESCRIPTION
You cannot use the returned time base value with the Movie Toolbox's SetTimeBaseMasterTimeBase and SetTimeBaseMasterClock functions (described on page 2-301 and page 2-299, respectively). Use the SetMovieMasterTimeBase and SetMovieMasterClock functions (described on page 2-299 and page 2-298, respectively) instead.

The Movie Toolbox disposes of a movie's time base when you dispose of the movie.

SPECIAL CONSIDERATIONS
Do not dispose of the TimeBase result returned by the GetMovieTimeBase function as it is owned by the movie.

ERROR CODES
invalidMovie-2010This movie is corrupted or invalid

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996